﻿using Naruto.TaskManagement.Entitys.Models;
using Naruto.TaskManagement.Entitys.VM;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Naruto.TaskManagement.IRepository
{
    public interface IChatMessageRepository
    {
        /// <summary>
        /// 新增消息
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        Task Add(ChatMessage info);
        /// <summary>
        /// 更改未读消息状态 为已读
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task UpdateRead(string id);

        /// <summary>
        /// 获取我的消息
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="reciveUserId"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<List<GetMyChatMessageViewModel>> GetMyChatMessage(string userId, string reciveUserId, int pageIndex, int pageSize);
    }
}
